package com.ztgf.message.model.dto;

import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ztgf.common.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 通知消息DTO
 *
 * @author YUE
 * @Date 2020-05-28 16:26:24
 */
@Data
@TableName("message_notice")
@ApiModel(value="通知消息对象", description="通知消息对象")
public class MessageNoticeDTO extends BaseDTO implements Serializable {

    @ApiModelProperty(value = "乐观锁")
    private Integer revision;
    @ApiModelProperty(value = "创建人")
    private Long createUserId;
    @ApiModelProperty(value = "更新人")
    private Long updateUserId;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "文本类型 0小喇叭，1文字、2图文")
    private Integer textType;
    @ApiModelProperty(value = "内容")
    private String content;
    @ApiModelProperty(value = "状态 0正常，1删除")
    private Integer status;
    @ApiModelProperty(value = "类型 0平台，1店铺")
    private Integer type;
    @ApiModelProperty(value = "是否发布 0未发布，1发布")
    private Integer isPublish;
    @TableLogic
    private Integer deleted;
    @ApiModelProperty(value = "发布人员id")
    private Long publisherId;
    @ApiModelProperty(value = "发布人员名字")
    private String publisherName;
    @ApiModelProperty(value = "排序")
    private Integer sort;
    @ApiModelProperty(value = "是否置顶 0置顶 1不置顶")
    private Integer isTop;
    @ApiModelProperty(value = "是否热门,0否,1是")
    private Integer isHot;
}